﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    public enum NPCtype
    {
        Task, //任务类型
        
        Shop,//商贩类型

        Iron //铁匠类型
    }
    abstract class NPC
    {
        private string name;
        private  NPCtype type; 

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public  NPCtype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public NPC() { }

        public NPC(string name, NPCtype type)
        {
            this.name = name;
            this.type = type;
        }

        public abstract void Speak();
    }
}
